package com.hunttown.mes.rpc.api;

import com.hunttown.common.domain.Page;
import com.hunttown.mes.rpc.domain.TransportNewsDTO;
import com.hunttown.mes.rpc.domain.query.TransportNewsDTOQuery;

import java.util.List;
import java.util.Map;

/**
 * created by wangjunfu on 2019-05-19 01:20:13
 */
public interface TransportNewsRpcService {

    TransportNewsDTO insert(TransportNewsDTO transportNewsDTO);

    Boolean updateInfoById(TransportNewsDTO transportNewsDTO);

    Boolean updateInfoByQuery(TransportNewsDTOQuery transportNewsDTOQuery);

    TransportNewsDTO selectById(Integer id);

    TransportNewsDTO selectObjByQuery(TransportNewsDTOQuery transportNewsDTOQuery);

    Page<TransportNewsDTO> getListForPage(TransportNewsDTOQuery transportNewsDTOQuery);

    Boolean deleteById(Integer id);

    List<Map<String, String>> getMapDataByQuery(TransportNewsDTOQuery transportNewsDTOQuery, String element);

    Long getTotalCount(TransportNewsDTOQuery transportNewsDTOQuery);
}